const Application = require("./application");
const Router = require("./router/index");
function createApplication() {
  // 工厂模式， 将创建应用和应用本身进行了分离
  const app = new Application();

  return app;
}
createApplication.Router = Router;

module.exports = createApplication;
